package demo01;

public class lx03 {
      public static void main(String[] args){
    	  for (int i=100;i<1000;i++){
    		  int a1=i/100;
    		  int b1=(i/10)%10;
    		  int c1=i%10;
    		  
    		  int a=(int) Math.pow(a1, 3);
    		  int b=(int) Math.pow(b1, 3);
    		  int c=(int) Math.pow(c1, 3);
    		  if(a+b+c==i){
    			  System.out.println(i);
    		  }
    	  }
      }
}
